package com.chess.annotation.demo;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class AnnotationOperationView extends View {

	private Paint paint = new Paint();
	private int radius = 0;

	public AnnotationOperationView(Context context) {
		this(context, 20);

	}

	public AnnotationOperationView(Context context, int radius) {
		super(context);
		init(context, radius);
	}

	 

 

	private void init(Context context, int radius) {
		this.radius = radius;
		paint.setColor(getResources().getColor(R.color.abs__holo_blue_light));
		paint.setAntiAlias(true);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		canvas.drawCircle(radius, radius, radius, paint);
	}

}